package com.lier.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lier.common.utils.PageUtils;
import com.lier.gulimall.product.entity.AttrEntity;
import com.lier.gulimall.product.entity.AttrGroupEntity;
import com.lier.gulimall.product.vo.*;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author lier
 * @email 664478853@qq.com
 * @date 2025-06-06 14:14:16
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);
    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    void removeAttrRelation(List<AttrRelationVo> attrRelationVoList);

    void saveRelation(List<AttrRelationVo> attrRelationVoList);

    List<AttrGroupWithAttrsVo> getGroupWithAttrs(Long catelogId);

    List<SpuItemBaseAttrGroupVo> getAttrGroupWithAttrsBySpuId(Long spuId, Long catalogId);

}

